package com.artpri.model.vo;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 简单商品信息，常用在商品列表，购物车等
 * <p/>
 * <h4>包含属性:</h4>
 * <ul>
 * <li>userNum      商家编号
 * <li>goodsNum     商品编号
 * <li>goodsName    商品标题
 * <li>goodsPrice   商品价格
 * <li>goodsLeave   商品数量
 * <li>goodsAddTime 商品添加时间
 * <li>gaId         商品主图id
 * <li>mainpic      商品主图url
 * </ul> 
 * @author 4
 * @see com.artpri.model.Goods
 * @see com.artpri.model.GoodsAlbum
 */
public class SimpleGoods {
	private int id;
	private int userNum;  //商家编号
	private String userName; //作者姓名
	private int goodsNum; //商品编号
	private String goodsName; //商品标题
	private BigDecimal goodsPrice; //价格
	private int goodsLeave; //商品数量
	private Date goodsAddTime; //商品添加时间
	private int gaId; //商品主图id
	private String mainpic; //商品主图url 
	
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getUserNum() {
		return userNum;
	}
	public void setUserNum(int userNum) {
		this.userNum = userNum;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public Date getGoodsAddTime() {
		return goodsAddTime;
	}
	public void setGoodsAddTime(Date goodsAddTime) {
		this.goodsAddTime = goodsAddTime;
	}
	public String getGoodsName() {
		return goodsName;
	}
	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}
	public BigDecimal getGoodsPrice() {
		return goodsPrice;
	}
	public void setGoodsPrice(BigDecimal goodsPrice) {
		this.goodsPrice = goodsPrice;
	}
	public int getGoodsLeave() {
		return goodsLeave;
	}
	public void setGoodsLeave(int goodsLeave) {
		this.goodsLeave = goodsLeave;
	}
	public String getMainpic() {
		return mainpic;
	}
	public void setMainpic(String mainpic) {
		this.mainpic = mainpic;
	}
	public int getGoodsNum() {
		return goodsNum;
	}
	public void setGoodsNum(int goodsNum) {
		this.goodsNum = goodsNum;
	}
	public int getGaId() {
		return gaId;
	}
	public void setGaId(int gaId) {
		this.gaId = gaId;
	}
	@Override
	public String toString() {
		return "SimpleGoods [userNum=" + userNum + ", userName=" + userName
				+ ", goodsNum=" + goodsNum + ", goodsName=" + goodsName
				+ ", goodsPrice=" + goodsPrice + ", goodsLeave=" + goodsLeave
				+ ", goodsAddTime=" + goodsAddTime + ", gaId=" + gaId
				+ ", mainpic=" + mainpic + "]";
	}
}
